package com.safe.first.domain.order.factory;

import com.safe.first.domain.order.model.BaseOrder;
import com.safe.first.domain.user.User;
import org.springframework.stereotype.Component;

/**
 * @author Mickey
 * @since 2022/5/27
 **/
@Component
public class BaseOrderFactory implements OrderFactory<BaseOrder, CreateBaseOrderParam> {

    @Override
    public BaseOrder instance(CreateBaseOrderParam createOrderCmd, User user) {
        return new BaseOrder(1L, 1L);
    }

}
